package com.hnkywl.sts.service.cwgl;

import com.google.gson.Gson;
import com.hnkywl.sts.dao.cwgl.RjbysDao;
import com.hnkywl.sts.entity.cwgl.kmys.Rjbys;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by ccr on 2014/7/9.
 */
@Service
public class RjbysService {
    private RjbysDao rjbysDao;

    public String rjbysList(String gs) {
        return new Gson().toJson(rjbysDao.rjbysList(gs));
    }

    @Transactional
    public void save(Rjbys rjbys) {
        rjbysDao.save(rjbys);
    }

    @Autowired
    public void setRjbysDao(RjbysDao rjbysDao) {
        this.rjbysDao = rjbysDao;
    }
}
